<template>
<Swiper v-if="banner.length >0">
  <SwiperItem v-for="(item, index) in banner" :key="index" >
    <a :href="item.link">
      <img :src="item.image" alt="">
    </a>
  </SwiperItem>
</Swiper>
</template>

<script>
import { Swiper, SwiperItem } from 'components/common/swiper'
export default {
  props: {
    banner: {
      type: Array,
      default () {
        return []
      }
    }
  },
  data () {
    return {

    }
  },
  created () {

  },
  mounted () {

  },
  components: {
    Swiper,
    SwiperItem
  }
}
</script>
<style scoped>
/* @import ''; 引入css类 */

</style>
